#!/usr/bin/env python
# encoding: utf-8
'''
poc.Mqpub -- shortdesc

poc.Mqpub is a description

It defines classes_and_methods

@author:     Anson Chan

@copyright:  2016 Xerland Co. Ltd. All rights reserved.

@contact:    anson_chan@xerland.com
@deffield    updated: Updated
'''
import sys
import paho.mqtt.client as mqtt
import paho.mqtt.publish as publish

#publish.single("$SYS/broker/messages/voila", "saibao!", hostname="iot.eclipse.org")
publish.single("gws/test/voila", "saibao!", hostname="test.mosquitto.org")